Remove a pointless check from the previous commit that added a new string.
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Apr 2007 18:39:59 +0000 (18:39 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 29 Apr 2007 18:39:59 +0000 (18:39 +0000)
2007-04-29  Matthias Clasen <mclasen@redhat.com>

        * io-jpeg.c: Remove a pointless check from the previous
        commit that added a new string.

svn path=/trunk/; revision=17714

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-jpeg.c

index 124194a9da43a27bfc5a96822e77bc4e9fdeed96..df7c7461c53f541fe9afeae07c1f9b0b60d9b6eb 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-29  Matthias Clasen <mclasen@redhat.com>
+
+       * io-jpeg.c: Remove a pointless check from the previous
+       commit that added a new string.
+
 2007-04-28  Matthias Clasen <mclasen@redhat.com>
 
        * io-png.c:
index 477751216eecf473fc9665156c093cbde83210d4..1df2b813cac8edd34317fe0ace347a3ceb0c2967 100644 (file)
@@ -965,18 +965,8 @@ real_save_jpeg (GdkPixbuf          *pixbuf,
 
        w = gdk_pixbuf_get_width (pixbuf);
        h = gdk_pixbuf_get_height (pixbuf);
-
-       /* no image data? abort */
        pixels = gdk_pixbuf_get_pixels (pixbuf);
 
-       if (pixels == NULL) {
-               g_set_error (error,
-                            GDK_PIXBUF_ERROR,
-                            GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
-                            _("Image contains no pixels."));
-               return FALSE;
-       }
-
        /* Allocate a small buffer to convert image data,
        * and a larger buffer if doing to_callback save.
        */